package com.the4man.framework.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lenovo on 2017/12/11.
 */
public class EmpHeartrateInfoExample {
    private int startRow = 0;
    private int pageSize = 0;
    protected String orderByClause;
    protected boolean distinct;
    protected List<EmpHeartrateInfoExample.Criteria> oredCriteria = new ArrayList();

    public int getStartRow() {
        return this.startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public EmpHeartrateInfoExample() {
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return this.orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return this.distinct;
    }

    public List<EmpHeartrateInfoExample.Criteria> getOredCriteria() {
        return this.oredCriteria;
    }

    public void or(EmpHeartrateInfoExample.Criteria criteria) {
        this.oredCriteria.add(criteria);
    }

    public EmpHeartrateInfoExample.Criteria or() {
        EmpHeartrateInfoExample.Criteria criteria = this.createCriteriaInternal();
        this.oredCriteria.add(criteria);
        return criteria;
    }

    public EmpHeartrateInfoExample.Criteria createCriteria() {
        EmpHeartrateInfoExample.Criteria criteria = this.createCriteriaInternal();
        if(this.oredCriteria.size() == 0) {
            this.oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected EmpHeartrateInfoExample.Criteria createCriteriaInternal() {
        EmpHeartrateInfoExample.Criteria criteria = new EmpHeartrateInfoExample.Criteria();
        return criteria;
    }

    public void clear() {
        this.oredCriteria.clear();
        this.orderByClause = null;
        this.distinct = false;
    }

    public static class Criteria extends EmpHeartrateInfoExample.GeneratedCriteria {
        protected Criteria() {
        }
    }

    public static class Criterion {
        private String condition;
        private Object value;
        private Object secondValue;
        private boolean noValue;
        private boolean singleValue;
        private boolean betweenValue;
        private boolean listValue;
        private String typeHandler;

        public String getCondition() {
            return this.condition;
        }

        public Object getValue() {
            return this.value;
        }

        public Object getSecondValue() {
            return this.secondValue;
        }

        public boolean isNoValue() {
            return this.noValue;
        }

        public boolean isSingleValue() {
            return this.singleValue;
        }

        public boolean isBetweenValue() {
            return this.betweenValue;
        }

        public boolean isListValue() {
            return this.listValue;
        }

        public String getTypeHandler() {
            return this.typeHandler;
        }

        protected Criterion(String condition) {
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if(value instanceof List) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }

        }

        protected Criterion(String condition, Object value) {
            this(condition, value, (String)null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, (String)null);
        }
    }

    protected abstract static class GeneratedCriteria {
        protected List<EmpHeartrateInfoExample.Criterion> criteria = new ArrayList();

        protected GeneratedCriteria() {
        }

        public boolean isValid() {
            return this.criteria.size() > 0;
        }

        public List<EmpHeartrateInfoExample.Criterion> getAllCriteria() {
            return this.criteria;
        }

        public List<EmpHeartrateInfoExample.Criterion> getCriteria() {
            return this.criteria;
        }

        protected void addCriterion(String condition) {
            if(condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            } else {
                this.criteria.add(new EmpHeartrateInfoExample.Criterion(condition));
            }
        }

        protected void addCriterion(String condition, Object value, String property) {
            if(value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            } else {
                this.criteria.add(new EmpHeartrateInfoExample.Criterion(condition, value));
            }
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if(value1 != null && value2 != null) {
                this.criteria.add(new EmpHeartrateInfoExample.Criterion(condition, value1, value2));
            } else {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
        }

        public EmpHeartrateInfoExample.Criteria andMacIsEmpId(String value) {
            this.addCriterion("mac in (select device_no from device where id in(select dev_id from employee_device where emp_id = '" + value + "'))");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdIsNull() {
            this.addCriterion("heart_id is null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdIsNotNull() {
            this.addCriterion("heart_id is not null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdEqualTo(String value) {
            this.addCriterion("heart_id =", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdNotEqualTo(String value) {
            this.addCriterion("heart_id <>", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdGreaterThan(String value) {
            this.addCriterion("heart_id >", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("heart_id >=", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdLessThan(String value) {
            this.addCriterion("heart_id <", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdLessThanOrEqualTo(String value) {
            this.addCriterion("heart_id <=", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdLike(String value) {
            this.addCriterion("heart_id like", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdNotLike(String value) {
            this.addCriterion("heart_id not like", value, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdIn(List<String> values) {
            this.addCriterion("heart_id in", values, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdNotIn(List<String> values) {
            this.addCriterion("heart_id not in", values, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdBetween(String value1, String value2) {
            this.addCriterion("heart_id between", value1, value2, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartIdNotBetween(String value1, String value2) {
            this.addCriterion("heart_id not between", value1, value2, "heartId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacIsNull() {
            this.addCriterion("mac is null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacIsNotNull() {
            this.addCriterion("mac is not null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacEqualTo(String value) {
            this.addCriterion("mac =", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacNotEqualTo(String value) {
            this.addCriterion("mac <>", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacGreaterThan(String value) {
            this.addCriterion("mac >", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacGreaterThanOrEqualTo(String value) {
            this.addCriterion("mac >=", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacLessThan(String value) {
            this.addCriterion("mac <", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacLessThanOrEqualTo(String value) {
            this.addCriterion("mac <=", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacLike(String value) {
            this.addCriterion("mac like", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacNotLike(String value) {
            this.addCriterion("mac not like", value, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacIn(List<String> values) {
            this.addCriterion("mac in", values, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacNotIn(List<String> values) {
            this.addCriterion("mac not in", values, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacBetween(String value1, String value2) {
            this.addCriterion("mac between", value1, value2, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andMacNotBetween(String value1, String value2) {
            this.addCriterion("mac not between", value1, value2, "mac");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValIsNull() {
            this.addCriterion("heart_val is null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValIsNotNull() {
            this.addCriterion("heart_val is not null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValEqualTo(Integer value) {
            this.addCriterion("heart_val =", value, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValNotEqualTo(Integer value) {
            this.addCriterion("heart_val <>", value, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValGreaterThan(Integer value) {
            this.addCriterion("heart_val >", value, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValGreaterThanOrEqualTo(Integer value) {
            this.addCriterion("heart_val >=", value, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValLessThan(Integer value) {
            this.addCriterion("heart_val <", value, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValLessThanOrEqualTo(Integer value) {
            this.addCriterion("heart_val <=", value, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValIn(List<Integer> values) {
            this.addCriterion("heart_val in", values, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValNotIn(List<Integer> values) {
            this.addCriterion("heart_val not in", values, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValBetween(Integer value1, Integer value2) {
            this.addCriterion("heart_val between", value1, value2, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andHeartValNotBetween(Integer value1, Integer value2) {
            this.addCriterion("heart_val not between", value1, value2, "heartVal");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeIsNull() {
            this.addCriterion("create_time is null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeIsNotNull() {
            this.addCriterion("create_time is not null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeEqualTo(Date value) {
            this.addCriterion("create_time =", value, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeNotEqualTo(Date value) {
            this.addCriterion("create_time <>", value, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeGreaterThan(Date value) {
            this.addCriterion("create_time >", value, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            this.addCriterion("create_time >=", value, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeLessThan(Date value) {
            this.addCriterion("create_time <", value, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            this.addCriterion("create_time <=", value, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeIn(List<Date> values) {
            this.addCriterion("create_time in", values, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeNotIn(List<Date> values) {
            this.addCriterion("create_time not in", values, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeBetween(Date value1, Date value2) {
            this.addCriterion("create_time between", value1, value2, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            this.addCriterion("create_time not between", value1, value2, "createTime");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepIsNull() {
            this.addCriterion("step is null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepIsNotNull() {
            this.addCriterion("step is not null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepEqualTo(Integer value) {
            this.addCriterion("step =", value, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepNotEqualTo(Integer value) {
            this.addCriterion("step <>", value, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepGreaterThan(Integer value) {
            this.addCriterion("step >", value, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepGreaterThanOrEqualTo(Integer value) {
            this.addCriterion("step >=", value, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepLessThan(Integer value) {
            this.addCriterion("step <", value, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepLessThanOrEqualTo(Integer value) {
            this.addCriterion("step <=", value, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepIn(List<Integer> values) {
            this.addCriterion("step in", values, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepNotIn(List<Integer> values) {
            this.addCriterion("step not in", values, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepBetween(Integer value1, Integer value2) {
            this.addCriterion("step between", value1, value2, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andStepNotBetween(Integer value1, Integer value2) {
            this.addCriterion("step not between", value1, value2, "step");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdIsNull() {
            this.addCriterion("emp_id is null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdIsNotNull() {
            this.addCriterion("emp_id is not null");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdEqualTo(String value) {
            this.addCriterion("emp_id =", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdNotEqualTo(String value) {
            this.addCriterion("emp_id <>", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdGreaterThan(String value) {
            this.addCriterion("emp_id >", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("emp_id >=", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdLessThan(String value) {
            this.addCriterion("emp_id <", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdLessThanOrEqualTo(String value) {
            this.addCriterion("emp_id <=", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdLike(String value) {
            this.addCriterion("emp_id like", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdNotLike(String value) {
            this.addCriterion("emp_id not like", value, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdIn(List<String> values) {
            this.addCriterion("emp_id in", values, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdNotIn(List<String> values) {
            this.addCriterion("emp_id not in", values, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdBetween(String value1, String value2) {
            this.addCriterion("emp_id between", value1, value2, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }

        public EmpHeartrateInfoExample.Criteria andEmpIdNotBetween(String value1, String value2) {
            this.addCriterion("emp_id not between", value1, value2, "empId");
            return (EmpHeartrateInfoExample.Criteria)this;
        }
    }
}
